package cn.swust.HuXinMeng.sound;

import java.io.IOException;
import java.io.InputStream;

import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.UnsupportedAudioFileException;

public interface ISoundManager {
	
	public static final AudioFormat PLAYBACK_FORMAT = new AudioFormat(44100, 16, 1, true, false);
	
	Sound getSound(String filename);
	
	Sound tryGetSound(String filename) throws UnsupportedAudioFileException, IOException;
	
	InputStream play(Sound sound);

	InputStream play(Sound sound, SoundFilter filter, boolean loop);

	void close();
	
}
